﻿using Microsoft.AspNet.SignalR;
using System.Linq;

namespace ZSoft.PushServices.Net.Transport.Infra
{
    public class DeviceIdProvider : IUserIdProvider
    {
        public string GetUserId(IRequest request)
        {
            return string.Empty;
            //ClientInfo info = 
            //    ConnectionManager.GetInfo(ConnectionManager.MapInstance.Where(c => c.)
            //if (info == null)
            //{
            //    throw new System.Exception("No device registered with this ID");
            //}

            //return info.DeviceId;
        }
    }
}
